package org.vectrics.recruiter.struts.tag;

import org.apache.ecs.html.A;
import org.apache.ecs.html.IMG;
import org.vectrics.common.html.*;
import org.apache.log4j.*;
import javax.servlet.jsp.tagext.TagSupport;

public class ArticleSectionTag extends TagSupport {

	private static final long serialVersionUID = -1902278515205432342L;
	
	static private Category log = Category.getInstance(ArticleSectionTag.class);

    private void addArticle(Table table, String title, String desc, String href) {
        Row row = table.addRow();
        Cell cell = row.addCell();
        A link = new A();
        link.setHref(href);
        IMG icon = new IMG();
        icon.setSrc("/hrs-public/graphics/art_icon.gif");
        icon.setAlt("");
        icon.setBorder(0);
        link.addElement(icon);
        cell.addElement(link);
        cell.setVAlign("top");
        
        cell = row.addCell();
        cell.setWidth("100%");
        link = new A();
        link.setHref(href);
        link.setClass("lnkArticle");
        link.addElement("<b>" + title + "</b><br>" + desc + "<br>");
        cell.addElement(link);
    }
    
}
